package src;

public class Student {
	private int number;
	private String name;
	private Laboratory[] laboratory1;
	private double moneyEarned;
	public Student(int number, String name, Laboratory[] laboratory1, double moneyEarned) {
		this.number = number;
		this.name = name;
		this.laboratory1 = laboratory1;
		this.moneyEarned = moneyEarned;
	}
	public int getnumber() {
		return number;
	}
	public String getname() {
		return name;
	}
	public Laboratory[] getlaboratory() {
		return laboratory1;
	}
	public double getmoneyEarned() {
		return moneyEarned;
	}
	public int setStudentnumber(int number) {
		this.number = number;
		return number;
	}
	public String name(String name) {
		this.name = name;
		return name;
	}
	public Laboratory[] setlaboratory(int N, Laboratory[] laboratory1, Laboratory laboratory2) {
		this.laboratory1[N] = laboratory2;
		return laboratory1;
	}
	public double setmoneyEarned(double moneyEarned) {
		this.moneyEarned += moneyEarned;
		return moneyEarned;
	}
	public void WorkStudyIncome(String[] List1, Student studnt) {
		for (int t = 0; t < 18; t++) {
			if (List1[t] == "") {
				studnt.setmoneyEarned(200);
			}
			if (List1[t] == "") {
				studnt.setmoneyEarned(120);
			}
			if (List1[t] == "") {
				studnt.setmoneyEarned(0);
			}
		}
	}
		
}
